package com.dhsc.local.dao.impl.ywjk.cgyhjh;

import com.dhsc.domain.jkzx.ywjk.cgyhjh.TcgYcVo;
import com.dhsc.domain.jkzx.ywjk.cgyhjh.WwhycmxVo;
import com.dhsc.local.dao.ywjk.cgyhjh.IWwhycmxDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("wwhycmxdao")
public class WwhycmxDaoImpl implements IWwhycmxDao {


    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<WwhycmxVo> queryWwhycmx(WwhycmxVo wwhycmxVo) {
        return localSqlSessionTemplate.selectList("WwhycmxMapper.queryWwhycmx",wwhycmxVo);
    }

    @Override
    public int saveTcgYc(TcgYcVo tcgYcVo) {
        return localSqlSessionTemplate.insert("WwhycmxMapper.saveTcgYc",tcgYcVo);
    }
}
